#pragma once
#ifndef OBLIVION

#include "ARES.rc.h"

#include "CheckBox/CheckBox.h"
#include "FilterTabDlg.h"

// CItemTab dialog

class CItemTab : public CFilterTab
{
	DECLARE_DYNAMIC(CItemTab)

public:
	CItemTab(CWnd* pParent = NULL);   // standard constructor
	virtual ~CItemTab();

// Dialog Data
	enum { IDD = IDD_FLTDLG_ITEM };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	virtual bool New();
	virtual bool Save(AffixFilter& flt) const;
	virtual bool Load(const AffixFilter& flt);

public:
	BOOL app;
	BOOL arm;
	BOOL wep;
	CString nameFilter;
	CEdit CNameFilter;
	CEdit CMinVal;
	CEdit CMaxVal;
	CEdit CMinWht;
	CEdit CMaxWht;
	CEdit CMinDur;
	CEdit CMaxDur;

	CListBox CAppTypes;
	CEdit CMinAR;
	CEdit CMaxAR;
	CCheckBox CHideRings;
	CCheckBox CHideAmulet;
	CCheckBox CBipedHead;
	CCheckBox CBipedHair;
	CCheckBox CBipedBodyUp;
	CCheckBox CBipedBodyLo;
	CCheckBox CBipedHand;
	CCheckBox CBipedFoot;
	CCheckBox CBipedRingR;
	CCheckBox CBipedRingL;
	CCheckBox CBipedAmulet;
	CCheckBox CBipedWeapon;
	CCheckBox CBipedWeaponBack;
	CCheckBox CBipedWeaponSide;
	CCheckBox CBipedQuiver;
	CCheckBox CBipedShield;
	CCheckBox CBipedTorch;
	CCheckBox CBipedTail;
	CEdit CModelFilterBipedMale;
	CEdit CModelFilterBipedFemale;
	CEdit CModelFilterGroundMale;
	CEdit CModelFilterGroundFemale;
	CEdit CIconFilterMale;
	CEdit CIconFilterFemale;

	CListBox CWepTypes;
	CEdit CMinDmg;
	CEdit CMaxDmg;
	CEdit CMinRng;
	CEdit CMaxRng;
	CEdit CMinSpd;
	CEdit CMaxSpd;
	CCheckBox CIgnNWRes;
	CEdit CModelFilterWeapon;
	CEdit CIconFilterWeapon;

	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedApp();
	afx_msg void OnBnClickedWep();
	afx_msg void OnLbnSelchangeAppTypes();
	afx_msg void OnLbnSelchangeWepTypes();
	afx_msg void OnModify();
};

#endif
